﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Runda.EShop.Common.Entity;
using Runda.EShop.Bll;
using Runda.EShop.Common.Utility;
using System.Data;

namespace Runda.EShop.SaaS.CustomerManage
{
    public partial class CustomerView : BasePage
    {
        public Guid CustomerID
        {
            get
            {
                if (Request.QueryString["CustomerID"] != null)
                {
                    return new Guid(Request.QueryString["CustomerID"]);
                }
                return Guid.Empty;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (CustomerID == Guid.Empty) return;

                BizCustomerEntity entity = new CustomerBll().Get<BizCustomerEntity>(CustomerID);
                ltlCustomerName.Text = entity.CustomerName;
                ltlCustomerCode.Text = entity.CustomerCode;
                ltlDeptName.Text = entity.DeptName; 
                //BindGrid(ConstHelper.PAGE_INIT_INDEX);
            }
        }

    }
}